package view;

import java.applet.*;
import java.net.*;

/**
 * Class to play sound with given URL
 * @author Projectgroep 5
 *
 */
public class Sound {
	public Sound(String path) {
		try {
			AudioClip clip = Applet.newAudioClip(new URL(path));
			clip.play();
		} catch (MalformedURLException murle) {
			System.out.println(murle);
		}
	}
}